package util{

	import flash.net.LocalConnection;
	import flash.system.System;
	import flash.external.ExternalInterface;

	public class SystemUtil{
		
		public static function GC():void{
			try{
				new LocalConnection().connect("social");
				new LocalConnection().connect("social");
			}catch(e:Error){
				
			}
		}
		
		public static function getMemCost():int{
			return System.totalMemory;
		}
		
		public static function openURL(url:String):void{
			ExternalInterface.call("openURL", url);
		}
		
		public static function refresh():void{
			ExternalInterface.call("refreshURL");
//			ExternalInterface.call("function refreshLocation(){window.location.href = window.location.href;}");
		}
	}
}